package day_03;

/**
 * @ClassName Test07
 * @Description TODO
 * @Author hp
 * @Date 2021/6/4 18:52
 * @Version 1.0
 **/
public class Test07 {
    public static void main(String[] args) {

        /*for (int i = 1; i <= 5; i++) {
            for (int j = 4; j >= i; j--) {
                System.out.print("  ");
            }
            for (int k = i * 2 - 1; k > 0; k--) {
                if (k == 1 || k == i * 2 - 1) {
                    System.out.print("* ");
                } else {
                    System.out.print("  ");
                }
            }
            System.out.println();
        }
        for (int i = 4; i >= 1; i--) {
            for (int j = 4; j >= i; j--) {
                System.out.print("  ");
            }
            for (int k = i * 2 - 1; k > 0; k--) {
                if (k == 1 || k == i * 2 - 1) {
                    System.out.print("* ");
                } else {
                    System.out.print("  ");
                }
            }
            System.out.println();
        }*/
        for (int i = 1; i <= 100; i++) {
            int flag = 1;
            for (int j = i - 1; j > 1; j--) {
                if (i % j == 0) {
                    flag = 0;
                    break;
                }
            }
            if (flag == 1) {
                System.out.println(i);
            }
        }
    }

}
